package com.example.taluo.constant;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/*** @Author supersaiya
 * @Description TODO

 * @Date 2025/2/15 17:43

 * @Version 1.0*/
@Component
public class RedisConstant {

    public static String hostName;
    public static int port;
    public static String auth;
    public static String envName;

    @Value("${spring.data.redis.hostName}")
    public  void setHostName(String hostName) {
        RedisConstant.hostName = hostName;
    }
    @Value("${spring.data.redis.port}")
    public  void setPort(int port) {
        RedisConstant.port = port;
    }
    /*
    @Value("${redis.auth}")
    public  void setAuth(String auth) {
        RedisConstant.auth = auth;
    }
    @Value("${envName}")
    public  void setEnvName(String envName) {
        RedisConstant.envName = envName;
    }*/
}